home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Prog / B-C / C++ FAQ Reference 1.0 / C++ FAQ Reference 1.0.rsrc / TEXT_329.txt < prev    next >
Encoding:
Text File  |  1993-06-30  |  355 b   |  1 lines

  1. Destructors are used to release any resources allocated by the object's constructor.  Ex: a Lock class might lock a semaphore, and the destructor will release that semaphore.  The usual 'resource' being acquired in a constructor (and subsequently released in a destructor) is dynamically allocated memory.  'dtor' is a typical abbreviation for destructor.